Checkbox
AutomatR.Web.Checkbox
The "Checkbox" activity in AutomatR's Web Activities category is designed to interact with checkbox elements on a web page. It allows you to select, unselect, or toggle the state of a checkbox. This activity is useful for automating tasks that involve interacting with checkboxes, such as form submissions or preference settings.
Properties
Name | Description |
---|---|
Input | |
Action | Enables the selection of options for the checkbox. You can choose to select, uncheck, or toggle the checkbox element for the selected UI element. |
Web Element | Enter the UI Element variable identified by the "Find Element" or other activity. This variable represents the checkbox element on the web page. |
Web Selector | Select the browse button to indicate the element on the web with the help of the selector window. Use this when providing a selector for the checkbox element. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Timeout | Enter the time in seconds (e.g., 5) for the activity to be executed before throwing an exception. If not provided, a default timeout is used (specified in Constants). |
Delay | Enter the wait time in seconds (e.g., 5) to start the activity. This can be useful for handling synchronization issues. |
Output | |
Result | Outputs a boolean value indicating whether the checkbox action was successful. "True" indicates success, and "False" indicates failure. Use this output for further conditional branching or error handling in the workflow. |
How to use:
- Drag and drop the "Checkbox" activity onto the workflow.
- Configure the properties by specifying the checkbox element using either the "Web Element" or "Web Selector" property.
- Choose the desired action for the checkbox: select, uncheck, or toggle.
- Optionally, configure the timeout and delay parameters.
- Execute the workflow to perform the specified action on the checkbox element.
Example: Consider an example where the "Checkbox" activity is used to select a checkbox for receiving newsletters on a web page:
Checkbox:
Action: Select
Web Element: checkboxElement
Timeout: 10
Delay: 2
Result: isCheckboxSelected
In this example, the activity selects the specified checkbox element ("checkboxElement") on the web page. The result of the operation (success or failure) is stored in the boolean variable "isCheckboxSelected" for further handling in the workflow.